
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">单位基本信息</td>
	</tr>
	<tr>
		<td nowrap align="right">单位名称：</td>
		<td colspan='8'>
		    <input type="hidden"
			name="organizations_extend/organization[0]@submit_org" value="1"> <input
			type="hidden" name="organizations_extend/organization[0]@sequence_no"
			value="1"> 
		    <input type="hidden"
			name="organizations/organization[0]@submit_org" value="1"> <input
			type="hidden" name="organizations/organization[0]@sequence_no"
			value="1"> <input type="hidden"
			name="organizations/organization[0]/org_code"
			value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>">
			<span name="organizations/organization[0]/cname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_name" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">法人代码：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/org_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_no" />
		</span></td>
		<td nowrap align="right">营业执照注册号：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/org_licence"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence" />
		</span></td>
		
	</tr>
	<tr>
	    <td nowrap align="right">国税登记号：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/tax_internal_no"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/tax_internal_no" />
					
		    </span>
		</td>
	    <td nowrap align="right">地税登记号：</td>
		<td colspan='3'>
		    <span name="organizations/organization[0]/tax_local_no"> 
		        <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/tax_local_no" />
			</span>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">单位地址：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/address"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/address" />
		</span></td>
		<td nowrap align="right">电子邮箱：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/email"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/email" />
		</span></td>
	</tr>
	<tr>
		<td nowrap align="right">银行账号：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/bank_account"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account" />
		</span></td>
		<td nowrap align="right">开户银行：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/bank_orgname"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname" />
		</span></td>
	</tr>
	<tr>
	    <td nowrap align="right">信用等级：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/bank_credit"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit" />
		</span></td>
		<td nowrap align="right"><span class="color_red">*</span>贷款证号码：</td>
		<td colspan='3'>
		     <input name='organizations_extend/organization[0]/loan_card' label="贷款证号码" 
		            onfocus="InitInput.setMaxLength(this,50)"
		            class='input_text required' size='40' value="<x:out
				    select="$xmlData/data/organizations_extend/organization[@submit_org=1]/loan_card" />">
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">单位成立时间：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/registe_date"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date" />
		</span></td>
		<td nowrap align="right"><span class="color_red">*</span>股份公司设立方式：</td>
		<td colspan='3'>
		     <input name='organizations_extend/organization[0]/company_type' label="股份公司设立方式" 
		            onfocus="InitInput.setMaxLength(this,50)"
		            class='input_text required' size='40' value="<x:out
				    select="$xmlData/data/organizations_extend/organization[@submit_org=1]/company_type" />">
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">注册类型：</td>
		<td colspan='4'><span
			name="organizations/organization[0]/nature_name"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name" />
		</span></td>
		<td align="right">单位电话：</td>
		<td colspan='3'><span
			name="organizations/organization[0]/org_tel"><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/org_tel" />
		</span></td>
	</tr>
	<tr>
	    <td nowrap align="right">现有注册资本：</td>
		<td colspan='2'>
		    <span name="organizations/organization[0]/registe_fund"> 
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund" />万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
		    </span>
		</td>
	    <td nowrap align="right">中资：</td>
		<td colspan='2'>
		    <span name="organizations/organization[0]/registe_fund_chn"> 
		        <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_chn" />万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_chn_money_name" />
		    </span>
		</td>
		<td nowrap align="right">外资：</td>
		<td colspan='2'>
		    <span name="organizations/organization[0]/registe_fund_foreign"> 
		        <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign" />万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_money_name" />
		    </span>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right"><span class="color_red">*</span>实收资本：</td>
		<td colspan='2'>
	     	<input name='organizations_extend/organization[0]/paid_fund'  onfocus="InitInput.setNumber(this,7,4,2)"
	     	      style="text-align: right;" class='input_text required' size='15' label="实收资本" value="<x:out
				  select="$xmlData/data/organizations_extend/organization[@submit_org=1]/paid_fund" />">万元
		</td>
	    <td nowrap align="right"><span class="color_red">*</span>中资：</td>
		<td colspan='2'>
		    <input name='organizations_extend/organization[0]/paid_fund_chn'  onfocus="InitInput.setNumber(this,7,4,2)"
		           style="text-align: right;" class='input_text required' size='15' label="实收资本中的中资" value="<x:out
				  select="$xmlData/data/organizations_extend/organization[@submit_org=1]/paid_fund_chn" />">万元
		</td>
		<td nowrap align="right"><span class="color_red">*</span>外资：</td>
		<td colspan='2'>
	   	    <input name='organizations_extend/organization[0]/paid_fund_foreign' onfocus="InitInput.setNumber(this,7,4,2)"
	   	           style="text-align: right;" class='input_text required' size='15' label="实收资本中的外资" value="<x:out
				  select="$xmlData/data/organizations_extend/organization[@submit_org=1]/paid_fund_foreign" />">万美元
		</td>
	</tr>
	<tr>
		<td nowrap align="right">经营方式：</td>
		<td colspan='8'>
		    <span name="organizations/organization[0]/opt_model_name">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_name" />
		    </span>
		    <span style="display: none" name="organizations/organization[0]/opt_model_value">
				<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_model_value" />
		    </span>
		</td>
	</tr>
	<tr>
		<td width="" nowrap align="right">经营范围（按营业执照）：</td>
		<td colspan='8'><span
			name="organizations/organization[0]/opt_scope"> <x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope" />
		</span></td>
	</tr>
	<tr>
		<td width="" nowrap align="right">单位专业资质：</td>
		<td colspan='8'>
		    <span name='organizations_extend/organization[0]/pro_quali'><x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/chk_authenticate_name" /></span>
		</td>
	</tr>
	<tr>
	    <td width="" nowrap align="right"><span class="color_red">*</span>单位拥有知识产权状况：<br>（限500字）</td>
	    <td colspan='8'>
	        <textarea id="brief" name="proposal/intell"
				rows='10' cols='130' class="required textarea maxlength:500"
				label="单位拥有知识产权状况"><x:out select="$xmlData/data/proposal/intell" /></textarea>
	   <input type="hidden" name="proposal/intell_hidden" value=""/>
	    </td>
	</tr>
</table>
<br>
<div class="t_bar">主要股东</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01" >
	<thead>
		<tr>
			<th align="center" width="40%" nowrap>主要股东名称</th>
			<th width="20%" align="center">股东出资额(万元)</th>
			<th width="20%">出资形式</th>
			<th width="20%">所占股份比例（%）</th>

		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach
			select="$xmlData/data/organization_shareholders/shareholder"
			var="shareholder">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><span style='display: none'
					name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
					<span
					name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						<x:out select="$shareholder/cname" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						<x:out select="$shareholder/invest_amount" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						<x:out select="$shareholder/invest_type_name" />
				</span></td>
				<td align="center"><span
					name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						<x:out select="$shareholder/invest_percent" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<br>
<div class="t_bar">近三年曾获政府资助的情况（金额：万元）</div>
<table border="0" cellspacing="0" cellpadding="0" class="table01">
	<thead>
		<tr>
			<th width="17%" align="center" nowrap>项目名称</th>
			<th width="13%" align="center">资助部门</th>
			<th width="11%">资助时间</th>
			<th width="11%">资助金额</th>
			<th width="10%">项目验收情况</th>
			<th width="10%">验收时间</th>
			<th width="7%" nowrap="nowrap">资助形式</th>
			<th width="10%">借款偿还情况</th>
			<th width="10%">还款时间</th>
		</tr>
	</thead>
	<tbody id="tab">
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/organization_research/fund_project"
			var="research">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/ctitle"> <x:out
							select="$research/ctitle" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/award_dept"> <x:out
							select="$research/award_dept" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/award_date"> <x:out
							select="$research/award_date" />
				</span></td>
				<td align="right"><span
					name="research/fund_project[${flag}${index}]/award_amt"> <x:out
							select="$research/award_amt" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/accept_flag_name">
						<x:out select="$research/accept_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/accept_date"> <x:out
							select="$research/accept_date" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/award_type"> <x:out
							select="$research/award_type_name" />
				</span></td>
				<td align="left"><span
					name="research/fund_project[${flag}${index}]/repay_flag_name">
						<x:out select="$research/repay_flag_name" />
				</span></td>
				<td align="center"><span
					name="research/fund_project[${flag}${index}]/repay_date"> <x:out
							select="$research/repay_date" />
				</span></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="table01 t_css">
 <tr>
		<td align="right"><span class="color_red">*</span>近两年银行贷款总额：</td>
		<td colspan='2'>
		<input name="research/total_loan" id="total_loan" label="近两年银行贷款总额" class="required valueGreatEqual:total_loan:over" style="text-align:right;width:130px;"
			onfocus="InitInput.setNumber(this,7,4,2);" onchange="repayClean(this.id,'repay','colorRed');" value="<x:out select="$xmlData/data/research/total_loan" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>余额：</td> 
		<td >
		    <input name="research/over" id="over" label="余额" style="text-align:right;width:130px;" onfocus="InitInput.setNumber(this,7,4,2)" class="required" value="<x:out
					select="$xmlData/data/research/over" />"/>
	    </td>
	    <td nowrap align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		 <td colspan='2'>
		<c:set var="repay_value"><x:out select="$xmlData/data/research/repay_value" /></c:set>
		<input name="research/repay_value" id="repay_value" type="hidden" value="<x:out select="$xmlData/data/research/repay_value" />"  label="近两年银行贷款总额中的到期偿还情况"/>
		<input name="research/repay_name" id="repay_name" type="hidden" value="<x:out select="$xmlData/data/research/repay_name" />" />
		<cpt:select id="repay" key="repay"  onChange="initControlValue('repay')"  value="${repay_value}"></cpt:select> 
	    </td>
	  </tr>
	
</table>
<br>
<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:if test="${grantCode!=57&&grantCode!=95&&grantCode!=80}">
<div class="t_bar"><span class="color_red">*</span>单位综合实力（根据提示内容编写，限1500字以内，请附相关证明材料）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	    cellspacing="1">
      <tr class="li_1">
          <td align="left">包括：企业规模、员工构成、行业竞争力及所处的地位、主导产品及主要经营业绩（自主知识产权产品在市场中的占有率）、产业基础、国家/省/市文化产业项目立项情况、在该项目领域取得的主要成果、企业内部管理体系及所取得的资质、获奖情况、国内外主要竞争对手等。</td>
      </tr>
      <tr class="li_2">
          <td>
			<textarea rows="15" cols="150"  class="input_textarea required  maxlength:1500"   name='proposal/org_comprehensive'  label="单位综合实力"><x:out select="$xmlData/data/proposal/org_comprehensive"/></textarea>
		     <input type="hidden" name="proposal/org_comprehensive_hidden" value=""/>
 		  </td>
      </tr>
</table>
</c:if>
<br>
<script type="text/javascript">
	$(function() {
		$("#orgInfo tr:even").addClass("li_1");
		$("#orgInfo tr:odd").addClass("li_2");
		
		repayClean('total_loan','repay','colorRed');
	});
	
	function repayClean(obj,string1,string2){
		var value=$("#"+obj).val();
		
		if(value==0){
			$("#"+string1+"_value").removeClass("required");
			$("#"+string1).attr("disabled",true);
			$("#"+string2).hide();
			$("#"+string1).val("");
			$("#"+string1+"_value").val("");
			$("#"+string1+"_name").val("");
		}
		else
			{
			$("#"+string1+"_value").addClass("required");
			$("#"+string1).attr("disabled",false);
			$("#"+string2).show();
			}
		
	}
</script>
